class BooksHistoryController < ApplicationController
  def index
    @user = current_user
    @categories = Category.all
    
    @books = @user.borrow_items
    @hot_books = Book.search_hot_book()    
  end
end
